package com.pl.lc.app.service;

import com.pl.lc.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @version 1.0
 * @Author 小胤
 * @Date 2024/6/6 13:55
 * @注释
 *  伪装接口
 *    1.配置  @FeignClient(value = "lc-userserver")
 *    2. 拷贝远程接口
 */
@FeignClient(value = "lc-userserver")
public interface SmsLogFeign {
    /**
     * 发送注册验证码
     *
     * @param phone
     * @return
     */
    @RequestMapping("/sms/sendrcode") // 注意远程请求的路径
    public R sendRegisterCode(@RequestParam("phone") String phone);
    @RequestMapping("/sms/sendlcode")
    public R sendLoginCode(@RequestParam("phone")String phone);

}
